package com.examlpe.cels.entity;

import java.io.Serializable;

public abstract class BaseTerm implements Serializable,Comparable<BaseTerm>{
	
	private static final long serialVersionUID = 8088564861801833393L;
	private long id;
	private String en;
	private String cn;
	private String category;
	
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public BaseTerm() {
		super();
	}
	
	public BaseTerm(String en, String cn) {
		super();
		this.en = en;
		this.cn = cn;
	}

	public BaseTerm(long id, String en, String cn) {
		super();
		this.id = id;
		this.en = en;
		this.cn = cn;
	}
	
	public BaseTerm(long id, String en, String cn, String category) {
		super();
		this.id = id;
		this.en = en;
		this.cn = cn;
		this.category = category;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getEn() {
		return en;
	}

	public void setEn(String en) {
		this.en = en;
	}

	public String getCn() {
		return cn;
	}

	public void setCn(String cn) {
		this.cn = cn;
	}

	//@Override
	public int compareTo(BaseTerm o) {
		//英文顺序进行排序，String类型方式
		return this.en.compareTo(o.en);
	}

}
